qx.Class.define("lastfmbackup.view.ProgressControlBar", {
  
  extend : lastfmbackup.view.AbstractButtonBar,
  
  construct : function()
  {
    this.base(arguments);
    
    this.hide();
  },
  
  members : {
    
    _getTemplate : function()
    {
      return [
        "<div class='control-bar'>",
          "<button class='button-run action-button'>{0}</button>".format(qx.locale.Manager.tr("Backup")),
          "<button class='button-abort action-button'>{0}</button>".format(qx.locale.Manager.tr("Abort")),
        "</div>"
      ].join("");
    },
    
    show : function(name)
    {
      this._element.find(name ? "button.button-{0}".format(name) : "button").show();
    },
    
    hide : function(name)
    {
      this._element.find(name ? "button.button-{0}".format(name) : "button").hide();
    }
    
  }
  
});